1. py文件开头导入
from __future__ import unicode_literals
import json
2.
str = "你好"
print (json.dumps(str,ensure_ascii=False))
from __future__ import unicode_literals
import json
str = "你好"
print (json.dumps(str,ensure_ascii=False))